
<%@ page import="SeedBank.Seed" %>
<!doctype html>
<html>
	<head>
		<meta name="layout" content="main">
		<g:set var="entityName" value="${message(code: 'seed.label', default: 'Seed')}" />
		<title><g:message code="default.show.label" args="[entityName]" /></title>
	</head>
	<body>
		<a href="#show-seed" class="skip" tabindex="-1"><g:message code="default.link.skip.label" default="Skip to content&hellip;"/></a>
		<div class="nav" role="navigation">
			<ul>
				<li><a class="home" href="${createLink(uri: '/')}"><g:message code="default.home.label"/></a></li>
				<li><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></li>
				<li><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></li>
			</ul>
		</div>
		<div id="show-seed" class="content scaffold-show" role="main">
			<h1><g:message code="default.show.label" args="[entityName]" /></h1>
			<g:if test="${flash.message}">
			<div class="message" role="status">${flash.message}</div>
			</g:if>
			<ol class="property-list seed">
			
				<g:if test="${seedInstance?.commonName}">
				<li class="fieldcontain">
					<span id="commonName-label" class="property-label"><g:message code="seed.commonName.label" default="Common Name" /></span>
					
						<span class="property-value" aria-labelledby="commonName-label"><g:fieldValue bean="${seedInstance}" field="commonName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.scientificName}">
				<li class="fieldcontain">
					<span id="scientificName-label" class="property-label"><g:message code="seed.scientificName.label" default="Scientific Name" /></span>
					
						<span class="property-value" aria-labelledby="scientificName-label"><g:fieldValue bean="${seedInstance}" field="scientificName"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.quantity}">
				<li class="fieldcontain">
					<span id="quantity-label" class="property-label"><g:message code="seed.quantity.label" default="Quantity" /></span>
					
						<span class="property-value" aria-labelledby="quantity-label"><g:fieldValue bean="${seedInstance}" field="quantity"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.hardinessZone}">
				<li class="fieldcontain">
					<span id="hardinessZone-label" class="property-label"><g:message code="seed.hardinessZone.label" default="Hardiness Zone" /></span>
					
						<span class="property-value" aria-labelledby="hardinessZone-label"><g:fieldValue bean="${seedInstance}" field="hardinessZone"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.specialRequirements}">
				<li class="fieldcontain">
					<span id="specialRequirements-label" class="property-label"><g:message code="seed.specialRequirements.label" default="Special Requirements" /></span>
					
						<span class="property-value" aria-labelledby="specialRequirements-label"><g:fieldValue bean="${seedInstance}" field="specialRequirements"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.harvestingInformation}">
				<li class="fieldcontain">
					<span id="harvestingInformation-label" class="property-label"><g:message code="seed.harvestingInformation.label" default="Harvesting Information" /></span>
					
						<span class="property-value" aria-labelledby="harvestingInformation-label"><g:fieldValue bean="${seedInstance}" field="harvestingInformation"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.growingTips}">
				<li class="fieldcontain">
					<span id="growingTips-label" class="property-label"><g:message code="seed.growingTips.label" default="Growing Tips" /></span>
					
						<span class="property-value" aria-labelledby="growingTips-label"><g:fieldValue bean="${seedInstance}" field="growingTips"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.startOfGrowingSeason}">
				<li class="fieldcontain">
					<span id="startOfGrowingSeason-label" class="property-label"><g:message code="seed.startOfGrowingSeason.label" default="Start Of Growing Season" /></span>
					
						<span class="property-value" aria-labelledby="startOfGrowingSeason-label"><g:formatDate date="${seedInstance?.startOfGrowingSeason}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.endOfGrowingSeason}">
				<li class="fieldcontain">
					<span id="endOfGrowingSeason-label" class="property-label"><g:message code="seed.endOfGrowingSeason.label" default="End Of Growing Season" /></span>
					
						<span class="property-value" aria-labelledby="endOfGrowingSeason-label"><g:formatDate date="${seedInstance?.endOfGrowingSeason}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.price}">
				<li class="fieldcontain">
					<span id="price-label" class="property-label"><g:message code="seed.price.label" default="Price" /></span>
					
						<span class="property-value" aria-labelledby="price-label"><g:fieldValue bean="${seedInstance}" field="price"/></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.dateCreated}">
				<li class="fieldcontain">
					<span id="dateCreated-label" class="property-label"><g:message code="seed.dateCreated.label" default="Date Created" /></span>
					
						<span class="property-value" aria-labelledby="dateCreated-label"><g:formatDate date="${seedInstance?.dateCreated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.lastUpdated}">
				<li class="fieldcontain">
					<span id="lastUpdated-label" class="property-label"><g:message code="seed.lastUpdated.label" default="Last Updated" /></span>
					
						<span class="property-value" aria-labelledby="lastUpdated-label"><g:formatDate date="${seedInstance?.lastUpdated}" /></span>
					
				</li>
				</g:if>
			
				<g:if test="${seedInstance?.user}">
				<li class="fieldcontain">
					<span id="user-label" class="property-label"><g:message code="seed.user.label" default="User" /></span>
					
						<span class="property-value" aria-labelledby="user-label"><g:link controller="user" action="show" id="${seedInstance?.user?.id}">${seedInstance?.user?.encodeAsHTML()}</g:link></span>
					
				</li>
				</g:if>
			
			</ol>
			<g:form>
				<fieldset class="buttons">
					<g:hiddenField name="id" value="${seedInstance?.id}" />
					<g:link class="edit" action="edit" id="${seedInstance?.id}"><g:message code="default.button.edit.label" default="Edit" /></g:link>
					<g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" />
					<g:actionSubmit action="purchase" value="Purchase Seed" onclick="return confirm('Are you sure?');" />			
				</fieldset>
			</g:form>
		</div>
	</body>
</html>
